﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace vITs.Site.Models.ActionModels
{
    public class AddPerDiemModel
    {
        [Required]
        public Int32 AssignmentId { get; set; }

        [Display(Name = "Datum")]
        [Required(ErrorMessage="Du måste ange ett datum.")]
        public DateTime Date { get; set; }

        [Display(Name = "Frukost")]
        public Boolean Breakfast { get; set; }

        public Boolean Lunch { get; set; }

        [Display(Name = "Middag")]
        public Boolean Dinner { get; set; }

        [Display(Name="Land")]
        [StringLength(50, MinimumLength=2, ErrorMessage="Ett lands namn måste vara mellan 2 och 50 tecken långt.")]
        public String Country { get; set; }

    }
}